package org.springcloud.wisdom.spring_02_classroom.teacher.list;

import org.springcloud.wisdom.spring_02_classroom.teacher.tschedule.entity.Teacher;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TeacherService {

    @Autowired
    private TeacherMapper teacherMapper;

    public List<Teacher> getAllTeachers() {
        return teacherMapper.selectAllTeachers();
    }
}
